var tclick = {};
tclick.test = function(){
  log("okokokokokoko")
}
//点击 模块点击
tclick.mclick = function (b, num) {
  if (!num) {
    num = 0;
  }
  if (b.exists()) {
    var bt = b.findOnce(num).bounds();
    click(bt.centerX(), bt.centerY());
    sleep(1000);
  }
};

//点击元素
tclick.ifclick = function (buten, num) {
  if (!num) {
    num = 0;
  }
  if (buten.exists()) {
    buten.findOnce(num).click();
    sleep(1000);
    return true;
  }
  return false;
}
log(module)
module.exports = tclick;